import enUSLocal from './en-US';
import zhCNLocal from './zh-CN';

export type Locale = 'en-US' | 'zh-CN' | 'en';
export type LocalMap = typeof locales['zh-CN'];

export const locales = {
  'en-US': enUSLocal,
  'zh-CN': zhCNLocal,
  en: enUSLocal,
};

export const getLocaleMap = (locale: Locale): LocalMap => {
  return locales[locale];
};